package spa_frontend;
import java.io.IOException;

import spa_data.*;

public class FloridaTest {
	public static void main(String args[]){
		
	//Create some animmals for testing
	Manatee john = new Manatee("Softnose John");
	Manatee eric = new Manatee("Eric the giant");
	SeaLion paul = new SeaLion("Powertooth Paul");
	SeaLion paula = new SeaLion("Mrs. Powertooth");
	Dolphin flipper = new Dolphin("Flipper, Jr.");
	
	//Create a database to store our animals
	Database data = new Database();
	
	//Add the animals to the database
	data.add(john);
	data.add(eric);
	data.add(paul);
	data.add(paula);
	data.add(flipper);
	
	//Observe the animals directly
	john.sighted();
	eric.sighted();
	paul.sighted();
	paula.sighted();
	flipper.sighted();
	
	//Observe some animals through the spot method.
	data.spot("Softnose John");
	data.spot("Powertooth Paul");
	
	//Save the data for later analysis
	try {
		data.save("Observed 21_11_11");
	} catch (IOException e) {
		System.out.println("Could not save data");
	}
	
	
	
	
	}

	
}
